<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
	<title>One Night Stand Home</title>
	<link rel="stylesheet" media="screen" type="text/css" href="style.css" />
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
  </head>

  <body>
    <?php 
	include('controllers/lib.php');
	$object=new ContentController();
	$event= new EventController();
	?>
    <div id="page">
	  <div id="header">
	    <div id="logo">
		<!-- type your logo and small slogan here -->
		<p>One Night Stand<span class="green"></span></p>
		<div id="slogan">
		  <p>the night everyone's got game... </p></div>
		<!-- end logo -->
		</div>
		<div id="nav">
		  <div id="nav-menu-left"></div>
		  <div id="nav-menu">
		  <!-- start of navigation -->
		    <ul>
			  <li><a href="index.php">Home</a></li>
			  <li><a href="RegisterView.php">Events</a></li>
			  <li><a href="EventView.php">Register</a></li>
			  <li><a href="AboutView.php">About the Event</a></li>
			  <li><a href="SponsorView.php">Sponsors</a></li>
			  <li></li>
			</ul>
			<!-- end navigation -->
          </div>
		  <div id="nav-menu-right"></div>
		</div>
	  </div>
	  <div class="clearfloats"></div>
	  <div id="header2">
	    <!-- the large header slogan which is over top of the grass image can either be changed, or removed below -->
	    <div id="header2-slogan1"></div>
	    <div id="header2-slogan2"><p>&nbsp;</p></div>
	    <!-- end header slogan -->
	  </div>
	  
	  <div id="content">
	    <div class="content-padding">
		  <!-- page content below -->
	      <h1>Please provide the following information:</h1>
	      <p>&nbsp;</p>
	      <b><p><i>***Please make sure this is the event you want to register for***</i></p></b>
          <p>Sport Being Registered For: &nbsp; <?php echo ($event->getName($_REQUEST[id],$_REQUEST[type]));?></p>
		  <?php
		  if($_REQUEST[type]=="TeamEvent")
		  {
			  echo "<p> Spots per team: ".$event->getSize($_REQUEST[id], $_REQUEST[type])."</p>";
		  }
		  ?>
          <p><a href=rules/<?php $event->getRules($_REQUEST[id], $_REQUEST[type])?>>Download Rules Here</a></p>
          <p> Description of Event: <?php $event->getDescription($_REQUEST[id], $_REQUEST[type]);?></p>
          <p> Time of Event: <?php $event->getTime($_REQUEST[id], $_REQUEST[type]);?></p>
          </br></br><br /></hr>
          <form action="ConfirmationView.php" method="post" name="Registration Form">
            <p>*****If you are registering a team, please have only the captain submit your team*****</p>
            <p>Captain's GTID(Starts with 902): 
              <input type="text" name="gtid0" id="gtid0" />
            </p>
            <p>
              <label>Captain's Name: 
                <input name="name0" type="text" id="name0" />
              </label>
            </p>
            <?php
			if($_REQUEST[type]=="TeamEvent")
			{
            echo "<p>Team Name:" ;
            echo ' <input type="text" name="team_name" id="team_name" />';
            echo '</p>';
			}
			?>
			<p> You are currently logged in as: 
              <input type="hidden" id="gtuser0" name="gtuser0" value='<?php echo getenv('REMOTE_USER')?>' />
			 <strong><?php echo getenv('REMOTE_USER')?></strong></p>
			 <br><p><em>If this is not you, exit your browser, revisit this page, and you will be asked to login. Please contact ryan.fahsel@gatech.edu if you are having problems.</em></p>
			 
            </p>
            <p>&nbsp;</p>
            <p>
              <?php 
			if($_REQUEST[type]=="TeamEvent")
			{
				echo "<p><strong> You MUST Complete This Information Regarding Your Team. Do not include Captain again: </strong></p>";
				echo "</br>";
				//Depending on how many spots, create fields
				for($spots=1; $spots<($event->getSize($_REQUEST[id], $_REQUEST[type])); $spots++)
				{
				
					echo "<p>Member ".$spots."</p>";
					echo "<p>GTID </p>";
            	  	echo '<p><input type="text" name="gtid'.$spots.'" id="gtid'.$spots.'" />';
					echo "<p>Full Name </p>";
            	  	echo '<p><input type="text" name="name'.$spots.'" id="name'.$spots.'" />';
					echo "<p>GT Username (example buzz3) </p>";
            	  	echo '<p><input type="text" name="gtuser'.$spots.'" id="gtuser'.$spots.'" />';
          		  	echo "</p>";
					echo "<br>";
				
				}
			}
			?>
              
              
            </p>
            <input type="hidden" id="type" name="type" value='<?php echo $_REQUEST[type]?>' />;
            <input type="hidden" id="type" name="id" value='<?php echo $_REQUEST[id]?>' />;
            <p>
              <input type="submit" name="button" id="button" value="Register" />
            </p>
          </form>

       
	    </div>
	  </div>
	  <div id="body-divider"></div><!-- the division between the light green content section, and the dark -->
	  <div id="content2">
	    <div class="content-padding">
		  <!-- content blocks (three side by side), can remove if needed, this was just an example -->
		  <div class="content2-block"></div>
		  <div class="content-divider"></div>
		  <div class="content2-block">
		    <h3><em><strong><?php $object->getFooterTitle()?></strong></em></h3>
		    <p><?php $object->getFooter()?><</p>
		  </div>
		  <div class="content-divider"></div>
		  <div class="clearfloats"></div>
		</div>
      </div>
	  <div id="footer-div"></div>
	  <div id="footer">
	    <p>Website &copy; Copyright FreShGA 2010, All rights reserved. <a href="http://www.steves-templates.com">website templates</a></p>
	  </div>
	</div>
  </body>
</html>